package com.example.springbootdemo.strategy;

/**
 * @author ：cici
 * @date ：Created in 2019/3/23 11:41
 */
public class Context {

    private Calculate calculate = null;

    public Context(Calculate calculate) {
        this.calculate = calculate;
    }

    public Integer operate(Integer a,Integer b){
       return this.calculate.cal(a, b);
    }
}
